package com.szit.adminserver.dao;

import com.szit.adminserver.entity.AdminPermission;

import java.util.ArrayList;

public interface AdminPermissionMapper {
    int deleteByPrimaryKey(Integer permissionId);

    int insert(AdminPermission record);

    int insertSelective(AdminPermission record);

    AdminPermission selectByPrimaryKey(Integer permissionId);

    int updateByPrimaryKeySelective(AdminPermission record);

    int updateByPrimaryKey(AdminPermission record);

    ArrayList<AdminPermission> selectAllPermission();

    /**
     * 根据userId查找对应的权限orders
     * @param userId
     * @return
     */
    Long selectOrdersByUserId(Integer userId);
}